import { Upload } from "@/api/interface/index";
import http from "@/api";

/**
 * @name 文件上传模块
 */
// 文件上传
// export const uploadFile = (params: FormData) => {
//   return http.post<Upload.ResFile>(PORT1 + `/file/upload`, params, { cancel: false });
// };

// 文件上传
export const uploadFile = (params: FormData) => {
  return http.post<Upload.ResFile>({
    url: `/file/upload`,
    data: params,
    _object: { loading: false }
  });
};
